#include "../tracking.cpp"


class Road_Recognise
{
  public:
  bool road_recognise(TrackRecognition *tracker)
  {
    int black_p_n = 0;
    float stop_p = 0.0f;
    for(uint16_t x=0;x<tracker->Track_W;++x)
    {
      if(tracker->ImagePath.at<uchar>(tracker->start_point_default.y,x) == 0)
      {
        black_p_n ++;
      }
    }
    stop_p = (float)black_p_n/(tracker->Track_W);
    //print(stop_p);
    if(stop_p>=0.9)
    {
      
      return false;
    
    }
    return true;
  }
};